package com.water.app.mapper;

import com.water.app.Goods;
import com.water.app.Type;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface goodsMapper {
    public List<Goods> selectAllGoods();

    public List<String> selectByAllType();

    public List<Goods> selectByLike(String likeName);

    public List<Goods> selectBySort();

    public List<Goods> sKill();

    public int selectUserByGoodsId(int goodsId);

    public double selectSingleMoneyByGoodsId(int goodsId);

    List<Goods> selectByType(Integer type);

    public  Goods selectById(int goodsId);

    public List<Goods> selectAllByShopId(int shopId);

    public List<Type> selectType();

    public Integer selectIsMyShop(Integer shopId);

    public List<Goods> selectByLikeManager(String name, Integer type, Integer status, Integer pageSize,Integer offset);

    public Integer selectPage(String name, Integer type, Integer status, Integer pageSize);
}

